#pragma once

#define PAGE_SHIFT 12
#define PAGE_SIZE  ((unsigned long)1 << PAGE_SHIFT)

#ifdef __KERNEL__

#define PAGE_MASK        (~(PAGE_SIZE - 1))
#define PAGE_ALIGN(addr) (((addr) + PAGE_SIZE - 1) & PAGE_MASK)

#endif
